package yxy.cherry.battle.module.record.stream;

import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.affix.Buff;

public class RecordStream41TriggerBuff extends RecordStream{
    Fighter target;
    Buff buff;
    public RecordStream41TriggerBuff(Fighter target, Buff buff){
        this.target = target;
        this.buff = buff;
    }

    @Override
    protected void _record() {
        sb().append(41);
        sb().append("|");
        sb().append(target.getFighterPosition().code());
        sb().append("|");
        sb().append(buff.getBuffCode());
        sb().append("|");
        sb().append(buff.getBuffCodeSeq());
        sb().append(";");
    }
}
